package com.etc.traval.biz;

import java.util.List;

import com.etc.travel.entity.Diary;
import com.etc.travel.entity.Diarycom;
import com.etc.travel.entity.User;

public interface DiarycomBiz {

	//根据评论人查询游记评论
	public List<Diarycom> queryDiarycomByUser(User user,int page,int size);
	//根据id查询游记评论
	public Diarycom queryDiarycomById(int id);
	//根据游记查询游记评论
	public List<Diarycom> queryDiarycomByDiary(Diary diary,int page,int size);
	//添加一个游记评论
	public boolean addDiarycom(Diarycom diarycom);
	//根据id删除一个游记评论
	public boolean deleteDiartcomById(int id);
	//根据游记查询该游记的评论条数
	public int queryCountByDiary(Diary diary);
	//根据评论数量排序游记（分页）
	public List<Diary> queryAllDiaryByCom(int size,int page);
	//根据发表评论次数给用户排名
	public List<User> queryUserByCom(int size,int page);
	//根据游记ID查询该游记所有评论
	public List<Diarycom> queryDiarycomByDiaryId(int id,int siez,int page);
}
